package com.gitee.web.service;

import com.gitee.business.entity.UserPo;
import com.gitee.business.mapper.UserMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl {
    @Autowired
    private UserMapper userMapper;

    public List<UserPo> selectAll() {
        return userMapper.selectAll();
    }

    public List<UserPo> selectAll(int pageNum, int pageSize) {
        PageHelper.startPage(pageNum, pageSize);
        return userMapper.selectAll();
    }

}